<include file="public/header"/>

<div class="am-cf admin-main">
  <!-- sidebar start -->
    <include file="public/sidebar"/>
  <!-- sidebar end -->

  <!-- content start -->
  <div class="admin-content">
    <div class="am-cf am-padding">
        <if condition="$omid neq null">
            <if condition="$pay eq 1">
                <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">选择付款方式</strong></div>
            <else/>
                <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">指派工厂</strong></div>
            </if>
            <else/>
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">指派量体师</strong></div>
        </if>
{$test}
    </div>
    <hr/>
    <div class="am-g">
      <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4" style="float: right;">
          <if condition="$omid neq null">
              <if condition="$pay eq 1">
                  <!--选择付款方式-->
                  <form class="am-form am-form-horizontal" method="post" action="__URL__/order_psEnd/id/{$omid}" name="form2">
                      <div class="am-form-group">
                          <label class="am-u-sm-3 am-form-label">余款方式</label>
                          <div class="am-u-sm-9">
                              <select name="pay">
                                      <option value="现金">现金</option>
                                      <option value="微信">微信</option>
                              </select>
                          </div>
                      </div>
                      <div class="am-form-group">
                          <div class="am-u-sm-9 am-u-sm-push-3">
                              <button type="submit" class="am-btn am-btn-primary">提交</button>
                          </div>
                      </div>
                  </form>
                  <!--end-->
                  <else/>
                  <!--指派工厂-->
                  <form class="am-form am-form-horizontal" method="post" action="__URL__/orderBelongGc2" name="form2">
                      <div class="am-form-group">
                          <label class="am-u-sm-3 am-form-label">工厂</label>
                          <div class="am-u-sm-9">
                              <select name="gc">
                                  <foreach name="datas" item="data">
                                      <option value="{$data.name}">{$data.name}</option>
                                  </foreach>
                              </select>
                          </div>
                      </div>
                      <div class="am-form-group">
                          <div class="am-u-sm-9">
                              <input type="hidden" name="omid" value="{$omid}">
                          </div>
                      </div>
                      <div class="am-form-group">
                          <div class="am-u-sm-9 am-u-sm-push-3">
                              <button type="submit" class="am-btn am-btn-primary">分配</button>
                          </div>
                      </div>
                  </form>
                  <!--end-->
              </if>

<else/>
          <!--指派量体师-->
        <form class="am-form am-form-horizontal" method="post" action="__URL__/orderBelong2" name="form2">
            <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">量体师</label>
                <div class="am-u-sm-9">
                    <select name="select">
                        <foreach name="datas" item="data">
                        <option value="{$data.name}">{$data.name}</option>
                        </foreach>
                    </select>
                </div>
            </div>
            <div class="am-form-group">
                <div class="am-u-sm-9">
                    <input type="hidden" id="phone" name="phone" value="{$phone}">
                </div>
            </div>
          <div class="am-form-group">
            <div class="am-u-sm-9 am-u-sm-push-3">
              <button type="submit" class="am-btn am-btn-primary">派单</button>
            </div>
          </div>
        </form>
          <!--end-->
</if>
      </div>
    </div>
  </div>
  <!-- content end -->
</div>
<include file="public/footer"/>
